#pragma once
//#include <synchapi.h>

class CLuck
{
public:
	CLuck() { InitializeCriticalSection(&m_cs); }
	~CLuck() { DeleteCriticalSection(&m_cs); }
	void Luck()
	{
		EnterCriticalSection(&m_cs);
	}
	void UnLuck()
	{
		LeaveCriticalSection(&m_cs);
	}
private:
	CRITICAL_SECTION m_cs;
};